package design.pattern.Adapter.main;

import design.pattern.Adapter.instance.TvOpenAdapter;
import design.pattern.Adapter.instance.User;
import design.pattern.Adapter.inter.impl.NewTvOpenImpl;
import design.pattern.Adapter.inter.impl.TvOpenImpl;

public class AdapterMain {
  public static void main(String[] args) {
    System.out.println("open tv ------------------------ ");
    User user = new User(new TvOpenImpl());
    user.open();
    
    System.out.println("new open tv -------------------- ");
    User user1 = new User(new TvOpenAdapter(new NewTvOpenImpl()));
    user1.open();
  }
}
